#pragma once
#include "NODE.h"
class List
{
protected:
	NODE* pHead;
public:

	List()
	{
		pHead = NULL;
	}
	~List(){ delete pHead;};

	bool AddHead( int data);
	bool AddTail( int data);
	NODE* GetNode(int pos);
	bool RemoveHead();
	bool RemoveTail();
	void PrintList();
	void RemoveAll();
	int SumList();
	int MaxList();
	int CountList();
	int CountData( int data);
	void SeperateLL(List &pHead1, List &pHead2, int x);
};
